#ifndef _GETWEATHER_H_
#define _GETWEATHER_H_

#include <FBase.h>
#include <FUi.h>
#include "WeatherPopup.h"

class GetWeather :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener,
	public Osp::Ui::ITextEventListener
{

// Construction
public:
	GetWeather(void);
	virtual ~GetWeather(void);
	bool Initialize(void);

// Implementation
protected:
	static const int ID_BUTTON_GET_NAME = 101;
	static const int ID_BUTTON_GET_POS = 102;
	Osp::Ui::Controls::Button *__pButtonGetName;
	Osp::Ui::Controls::Button* __pButtonGetPos;
	Osp::Ui::Controls::EditField* __pEditFieldName;
	Osp::Ui::Controls::EditField* __pEditFieldLat;
	Osp::Ui::Controls::EditField* __pEditFieldLon;

public:
	virtual result OnInitializing(void);
	virtual result OnTerminating(void);
	virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);
	virtual void OnTextValueChanged(const Osp::Ui::Control& source);
	virtual void OnTextValueChangeCanceled(const Osp::Ui::Control& source);
protected:
	Osp::Base::String CityName;
	Osp::Base::String Lat;
	Osp::Base::String Lon;
	WeatherPopup* __pWeatherPopup;
};

#endif	//_GETWEATHER_H_
